package com.cowcode.biz.impl;

import com.cowcode.biz.StudyBiz;
import com.cowcode.dao.StudyDao;
import com.cowcode.entity.Study;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * User: ljy
 * Date: 2021/6/27
 * Time: 10:44
 */
@Service
public class StudyBizImpl implements StudyBiz {
    @Resource
    private StudyDao studyDao;
    @Override
    public List<Study> queryAll() {
        return studyDao.queryAll();
    }

    @Override
    public boolean updateDownload(int sid) {
        return studyDao.updateDownload(sid);
    }
}
